<?php

namespace App\Api\Controllers;

use App\Api\Dao\SystemNoticeDao;
use App\Api\Logic\SystemNoticeLogic;
use Illuminate\Http\Request;

class SystemNoticeController extends BaseController
{
    /**
     * 获取系统消息的列表
     * @return \Illuminate\Http\JsonResponse
     */
    public function getSystemNoticeList(Request $request,SystemNoticeLogic $systemNoticeLogic,SystemNoticeDao $systemNoticeDao){
        $params = $request->all();
        $systemNoticeLogic->getSystemNoticeList($params);
        $data = $systemNoticeDao->getSystemNoticeList($params);
        return $this->success($data);
    }
}
